package com.linux.huhx.other;

import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

import java.util.Map;

/**
 * Created by huhx on 2017-05-15.
 */
public class JsonView extends MappingJackson2JsonView {
    protected Object filterModel(Map<String, Object> model) {
        Map result = (Map)model.get("Json");
//        if (!result.containsKey("0000")) {
//            result.put("returnCode", "0000");
//        }
        return result;
    }
}
